﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Maltose.DynamicToken
{
    /// <summary>
    /// 动态令牌 缓存数据结构
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class DynamicTokenCache<T>
    {
        /// <summary>
        /// 加密后的token值
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// 写入信息的时间
        /// </summary>
        public DateTime CreateDateTime { get; set; } = DateTime.Now;


        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime ExpireDateTime { get; set; }


        /// <summary>
        /// 被写入的用户信息
        /// </summary>
        public T Data { get; set; }
    }

}
